<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <title></title>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <!--<link href="vendor.css" rel="stylesheet">-->

    <link href="app.css" rel="stylesheet">
    <script src="ajax.js"></script>
    <script src="vendor.js"></script>
    <script src="app.js"></script>

    <!-- cordova script (this will be a 404 during development) -->
    <!--<script src="cordova.js"></script>-->
    <script>
      var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?80901f457b24586a5581e5a4ffc30cf4";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>

  </head>
  <body onload="init()">

  <div class="uper">
    <div class="ion-share" onclick="shareToOther()"><img src="img/share.png" style="width: 100%;height: 100%;display: block"/></div>
    <!--<i class="ion-help"></i>-->
    <label class="output">已获得: <span id="now_num">4</span> </label>
    <div class="ion-reset" onclick="replay()"><img src="img/reset.png" style="width:100%;height:100%;display:block"/></div>
  </div>
  <div class="titl">
    <p>尝试得到数字<span style="color: red" id="aim_num">11</span>吧</p>
  </div>
  <canvas id="demoCanvas"></canvas>
  <div class="footer">
    玩法:相邻有相同数字的方块时,点击其中一个方块,相邻的所有方块会聚拢到被点击的方块中,被点击的方块数值会加1,快尝试获取数字11吧!
    <!--<div class="ion-swap"><img src="img/settings44.png" style="width: 100%;height: 100%;display: block"/></div>-->
    <!--<div class="settings"><img src="img/settings44.png" style="width: 100%;height: 100%;display: block"/></div>-->
    <!--<div class="ion-strong"><img src="img/settings44.png" style="width: 100%;height: 100%;display: block"/></div>-->
  </div>
  <div class="cover" id="cover-box">
    <div>Game Over!</div>
    <div class="share but" onclick="shareToOther()">分享给朋友</div>
    <div class="replay but" onclick="replay()">重玩</div>
    <div class="cancel but" onclick="cancel()">取消</div>
  </div>
  <div class="cover" id="win-box">
    <div style="padding:25px">恭喜,你已经完成目标,还可以继续挑战更大的数字哦!</div>
    <div class="share but" onclick="shareToOther()">分享给朋友</div>
    <div class="continue but" onclick="cancel()">继续</div>
  </div>
  <div id="back-cover"></div>
  <div id="share-cover" onclick="this.style.display='none'">
    <img src="img/guide.png"/>
  </div>
  </body>
</html>





